package com.honghu.cloud.service;

import java.util.List;
import java.util.Map;

import com.honghu.cloud.bean.Accessory;
import com.honghu.cloud.common.page.Page;

/**
 * 文件service
 * @author Administrator
 *
 */
public interface IAccessoryService {


	public void batchDelObjs(List<Accessory> objs);


	public Accessory getObjByProperty(String key, String operation_symbol, Object value);


	public List<Accessory> selectObjByProperty(Map<String, Object> maps);


	public List<Accessory> queryPages(Map<String, Object> params);


	public List<Accessory> queryPageListWithNoRelations(Map<String, Object> param);


	public List<Accessory> queryPagesWithNoRelations(Map<String, Object> params, Integer currentPage,
			Integer pageSize);


	public Page<Accessory> queryPagesWithNoRelations(Map<String, Object> params);


	public void batchDeleteByIds(List<Long> ids);


	public void saveEntity(Accessory obj);


	public void updateById(Accessory obj);


	public void deleteById(Long id);


	public Accessory selectByPrimaryKey(Long id);


	public List<Accessory> queryPageList(Map<String, Object> params, Integer begin, Integer max);


	public List<Accessory> queryPageList(Map<String, Object> params);


	public int selectCount(Map<String, Object> params);


	public void batchDelete(List<Accessory> goodsPhotos);


	public void save(Accessory photo);


	public void update(Accessory photo);


	public void delete(Long id);


	public Page<Accessory> list(Map<String, Object> params);

	
	/**
	 * 根据商品id查询商品图片集合
	 * @param id
	 * @return
	 */
	List<Accessory> getGoodsPhotosByAccessoryId(Long id);
	
}
